package cn.woniu.ecommerceplatform.service;

import cn.woniu.ecommerceplatform.entity.Label;
import cn.woniu.ecommerceplatform.util.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author admin
* @description 针对表【t_label】的数据库操作Service
* @createDate 2023-01-05 19:40:20
*/
public interface LabelService extends IService<Label> {

    ResponseResult<?> queryList(String labelName,Integer pageNum,Integer pageSize);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    ResponseResult<?> deleteById(Integer id);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    ResponseResult<?> deleteList(Integer[] ids);

    /**
     * 新增
     * @param label
     * @return
     */
    ResponseResult<?> insertLabel(Label label);

    /**
     * 根据id修改
     * @param label
     * @return
     */
    ResponseResult<?> updateLabelById(Label label);

}
